import request from '@/utils/request'

export function register(username,password,licence42Code,adminName,accountType) {
  return request({
    url: '/admin/register',
    method: 'post',
    data: {
      username:username,
      password:password,
      licence42Code:licence42Code,
      adminName:adminName,
      accountType:accountType,
    }
  })
}

export function getList(){
  return request({
    url: `/reg/getList`,
    method: 'get',
  })
}
